package com.ahsjdy.st.stdao.mapper;

import com.ahsjdy.st.stdao.entity.Area;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AreaMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Area record);

    int insertSelective(Area record);

    Area selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Area record);

    int updateByPrimaryKey(Area record);

    List<Area> listArea(@Param("areaName") String areaName);

    int updateStatus(@Param("areaId") Integer areaId,
                     @Param("oldStatus")int oldStatus,
                     @Param("newStatus")int newStatus);
}